<?php

Route::any("/", array(
    "as"   => "index",
    "uses" => "UserController@getIndex"
));



Route::group(array("before" => "guest"), function()
{
    Route::any("/login", array(
        "as"   => "user/login",
        "uses" => "UserController@loginAction"
    ));

    Route::any("/register", array(
        "as"   => "user/register",
        "uses" => "UserController@registerAction"
    ));

    Route::any("/request", array(
        "as"   => "user/request",
        "uses" => "UserController@requestAction"
    ));

    Route::any("/reset", array(
        "as"   => "user/reset",
        "uses" => "UserController@resetAction"
    ));
});

Route::group(array("before" => "auth"), function()
{
    Route::any("/profile", array(
        "as"   => "user/profile",
        "uses" => "UserController@profileAction"
    ));

    Route::any("/belot", array(
        "as"   => "game/game",
        "uses" => "GameController@getIndex"
    ));

    Route::any("/game", array(
        "as"   => "game/game",
        "uses" => "GameController@getIndex"
    ));

    Route::any("/logout", array(
        "as"   => "user/logout",
        "uses" => "UserController@logoutAction"
    ));
});